package intranet.models;
import java.sql.*;


public class DatabaseModel {
	private String ConnectionName="oracle.jdbc.driver.OracleDriver";
	private String ConnectionType="jdbc:oracle:thin:@//172.16.5.178:1521/INTRANET";
	private String UserName="INTNPROD";
	private String PassWord="intranet_user";
	Connection DatabaseConnection;
	public Connection GetConnection(){
		try{
            Class.forName(ConnectionName);
            DatabaseConnection=DriverManager.getConnection(ConnectionType,UserName,PassWord);
		}catch(Exception e){
			e.getLocalizedMessage();
		}
		return DatabaseConnection;
	}
}
